package com.zhijiang.util;

//import com.zhijiang.hospital.entity.LoginUser;
//import org.springframework.security.core.Authentication;
//import org.springframework.security.core.context.SecurityContextHolder;
//
//public class UserHolder {
//
//
//    public static LoginUser localUser(){
//        Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
//        Object principal = authentication.getPrincipal();
//        return  (LoginUser) principal;
//    }
//
//
//
//
//}
